#include <setjmp.h>
#include <stdio.h>
#include <stdlib.h>
#include <gtk/gtk.h>

#include "app.h"

#define UNUSED(x)  ((void)x)

jmp_buf ctrl_c_jump;

int main(int argc, char*argv[])
{
    UNUSED(argc);
	UNUSED(argv); 

    int ret = 0;
    struct app *p_app = NULL;

    p_app = (struct app *)malloc(sizeof(struct app));

    ret = setjmp(ctrl_c_jump);
    if (ret != 1) {
        init(p_app);  
        run(p_app);
    }

    destroy(p_app);
    
    return 0;
}